package study.DesignPattern.Factory;

public class ShapeFactory {
    public Shape getWrite(String i) {
        if (i == null) {
            return null;
        }
        if (i == "A") {
            return new A();
        } else if (i == "B") {
            return new B();
        } else if (i == "C") {
            return new C();
        }
        return null;
    }
}
